<%-- 
    Document   : ConsultaPerfis
    Created on : Mar 4, 2010, 1:31:32 AM
    Author     : bruno
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>List Of Persons</title>
    </head>
    <body>

    <h1>Consulta de Perfis Cadastradas</h1>

    <table id="pessoaTable" border="3">
    <tr >
        <th bgcolor=>ID</th>
        <th bgcolor=>Nome</th>
        <th bgcolor=>Pessoas</th>
    </tr>
    <c:forEach var="perfil" begin="0" items="${requestScope.perfis}">
        <tr>
            <td>${perfil.id}&nbsp;&nbsp;</td>
            <td>${perfil.name}&nbsp;&nbsp;</td>

            <td>
            <c:forEach var="pessoa" begin="0" items="${perfil.pessoas}">
                ${pessoa.name}<br/>
            </c:forEach>
            </td>
        </tr>
    </c:forEach>
    </table>
    <a href="index.jsp"><strong>Voltar para o início</strong></a>
</body>
</html>
